package com.zsc.wxm.ysh.anjo.service.base.model.mq;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * mq消息体
 *
 * @author playmaker
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MqMessage implements Serializable {

    /**
     * 更新或者新增消息
     */
    public final static String CREATE_OR_UPDATE = "create_update";

    /**
     * 删除消息
     */
    public final static String DELETE = "delete";

    /**
     * 房源Id
     */
    private Long houseId;

    /**
     * 消息类型
     */
    private String type;
}
